export default {
    setCookies(logininfo) {
      window.localStorage.setItem('userName', logininfo)
    },
    getCookies(defaultlogininfo) {
      let locallogininfo = window.localStorage.getItem('userName');

      if (locallogininfo === null) {
        return defaultlogininfo
      } else {
        return locallogininfo
      }
    }
  }
